using System.Collections;
using System.Collections.Generic;
using Newtonsoft.Json;
using UnityEngine;

public class BDFrameWorkConfig
{
    /// <summary>
    /// 版本号
    /// </summary>
    public string Version { get; set; }


    /// <summary>
    /// 加载框架配置
    /// </summary>
    public static BDFrameWorkConfig Load()
    {
        var content = Resources.Load<TextAsset>("BDFrameConfig")?.text;
#if UNITY_EDITOR
        if (content != null)
        {
            Debug.Log("框架版本:" + content);
        }
        else
        {
            Debug.Log("框架版本: 未加载到!");
        }
#endif
        var config = JsonConvert.DeserializeObject<BDFrameWorkConfig>(content);
        return config;
    }
}